package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.GoodsCouponDAO;
import top.zywork.dos.GoodsCouponDO;
import top.zywork.dto.GoodsCouponDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.GoodsCouponService;

import javax.annotation.PostConstruct;

/**
 * GoodsCouponServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-08-02<br/>
 *
 * @author http://zywork.top 危锦辉
 * @version 1.0
 */
@Service(value = "goodsCouponService")
public class GoodsCouponServiceImpl extends AbstractBaseService implements GoodsCouponService {

    private GoodsCouponDAO goodsCouponDAO;

    @Autowired
    public void setGoodsCouponDAO(GoodsCouponDAO goodsCouponDAO) {
        super.setBaseDAO(goodsCouponDAO);
        this.goodsCouponDAO = goodsCouponDAO;
    }

    @PostConstruct
    public void init() {
        super.init(GoodsCouponDO.class, GoodsCouponDTO.class);
    }
}
